package com.bskj.kuaifu.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.bskj.common.bean.model.TopupActivity;
import com.bskj.common.bean.model.UserInfo;
import com.bskj.common.service.IBaseService;

public interface ITopupActivityService extends IBaseService<TopupActivity> {
	/**
	 * 查找所有已经激活的充值活动
	 * 
	 * @return
	 */
	List<TopupActivity> findActiveTopupActivity() throws Exception;
	
	/**
	 * 参加充值活动
	 * 
	 * @param userInfo 用户ID
	 * @param topupMoney 充值的金额（单位角）
	 * @return
	 * @throws Exception
	 */
	@Transactional(rollbackFor=Exception.class)
	void joinPayActivity(UserInfo userInfo,int topupMoney) throws Exception;
}
